package com.ys.erp.entity.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ys.erp.entity.data.bean.PulseSetting;
import com.ys.erp.entity.mapper.PulseSettingMapper;
import com.ys.erp.entity.service.IPulseSettingService;
import org.springframework.stereotype.Service;
/**
 * @author lwj
 * @date 2025/5/29
 */
    
@Service
public class IPulseSettingServiceImpl extends ServiceImpl<PulseSettingMapper, PulseSetting> implements IPulseSettingService {

    @Override
    public PulseSetting getLast() {
        QueryWrapper<PulseSetting> settingQw = new QueryWrapper<>();
        settingQw.lambda().last("order by id desc limit 1");
        return getOne(settingQw);
    }

}
